package com.yanqu.road.server.manger.messagesubscribe.enums;

public enum MessageSubscribeType {

    /**
     * 一次性
     */
    OneTime(2),

    /**
     * 永久
     */
    Forever(3);

    private int value;

    MessageSubscribeType(int value) {
        this.value = value;
    }

    public static MessageSubscribeType forNumber(int value) {
        for (MessageSubscribeType item : MessageSubscribeType.values()) {
            if (item.value == value) {
                return item;
            }
        }
        return null;
    }


    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
